package sctu.edu.java.year2016.team07.shihaocheng.day20160523.chapter3_2;

/**
 * Created by admin on 2016/5/20.
 *声明两个变量，用三维运算符判断是否相等
 */
import java.util.Scanner;
public class chapter3_2 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("please enter the number a:");
        int a = scan.nextInt();
        System.out.println("please enter the number b:");
        int b = scan.nextInt();
            if(a ==b)
            {
                System.out.println("a=b");
            }
            else
            {

                System.out.println("the max is :"+(a>b?a:b));
            }
    }
}
